//
//  AppDelegate.m
//  车福内测
//
//  Created by heew on 15/12/7.
//  Copyright © 2015年 heew. All rights reserved.
//

#import "AppDelegate.h"
#import "QGAdHocListController.h"
#import "QGAdhocUploadController.h"


@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    self.window.backgroundColor = [UIColor whiteColor];
    QGAdHocListController *downloadListVc = [[QGAdHocListController alloc] init];
    UINavigationController *downloadNav = [[UINavigationController alloc] initWithRootViewController:downloadListVc];
    downloadNav.tabBarItem.title = @"下载";
    downloadNav.tabBarItem.image = [UIImage imageNamed:@"download"];
    QGAdhocUploadController *uploadListVc = [[QGAdhocUploadController alloc] init];
    UINavigationController *uploadNav = [[UINavigationController alloc] initWithRootViewController:uploadListVc];
    uploadNav.tabBarItem.title = @"上传";
    uploadNav.tabBarItem.image = [UIImage imageNamed:@"Upload"];
    UITabBarController *tabVc = [[UITabBarController alloc] init];
    [tabVc addChildViewController:downloadNav];
    [tabVc addChildViewController:uploadNav];
    self.window.rootViewController = tabVc;
    
    [self.window makeKeyAndVisible];
    return YES;
}

@end
